home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / Talker / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  2.2 KB  |  77 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 1 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef FRAME_H
  5. #define FRAME_H
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWDRGDRP_H
  10. #include "FWDrgDrp.h"        // FW_MDroppableFrame
  11. #endif
  12.  
  13.  
  14. #ifndef FWFRAME_H
  15. #include <FWFrame.h>        // FW_CFrame
  16. #endif
  17.  
  18. #ifndef FWRECT_H
  19. #include <FWRect.h>            // FW_CRect
  20. #endif
  21.  
  22. // ----- OS Layer -----
  23. #ifndef FWEVENT_H
  24. #include "FWEvent.h"        // FW_CMouseEvent
  25. #endif
  26.  
  27. //=======================================================================
  28. class CTalkerPart;
  29. class FW_CMenuEvent;
  30. class FW_CPictureShape; 
  31.  
  32. //=======================================================================
  33. class CTalkerFrame : public FW_CFrame, public FW_MDroppableFrame {
  34. public:
  35.     FW_DECLARE_AUTO(CTalkerFrame)
  36.     
  37. public:
  38.                         CTalkerFrame(Environment* ev, 
  39.                                     ODFrame* odFrame, 
  40.                                     FW_CPresentation* presentation, 
  41.                                     CTalkerContent* content);
  42.     virtual             ~CTalkerFrame();
  43. protected:
  44. // overrides
  45.     virtual FW_CDropCommand*     NewDropCommand(Environment *ev, 
  46.                                             FW_CFrame* frame,
  47.                                             ODDragItemIterator* dropInfo, 
  48.                                             ODFacet* facet, 
  49.                                             const FW_CPoint& dropPoint);
  50.     virtual FW_CClipboardCommand*     NewClipboardCommand(Environment* ev, 
  51.                                                 ODCommandID commandID);
  52.     virtual void        Draw(Environment *ev, 
  53.                              ODFacet* odFacet, 
  54.                              ODShape* invalidShape);
  55.     virtual void        FrameShapeChanged(Environment* ev);
  56.     virtual FW_Boolean    DoAdjustMenus(Environment* ev,
  57.                                       FW_CMenuBar* menuBar, 
  58.                                       FW_Boolean hasMenuFocus,
  59.                                       FW_Boolean isRoot);
  60.     virtual FW_Boolean    DoMenu(Environment* ev,
  61.                                const FW_CMenuEvent& theMenuEvent);
  62.     virtual FW_Boolean     DoMouseDown(Environment* ev, 
  63.                                 const FW_CMouseEvent& theMouseEvent);
  64.     virtual ODDragResult CanAcceptDrop(Environment* ev, 
  65.                                         ODDragItemIterator* dragInfo);
  66. // new members
  67. protected:
  68.     virtual void         MyInitPicture(Environment* ev);
  69. private:
  70.     CTalkerContent*     fTalkerContent;
  71.     FW_CRect             fFrameRect;
  72.     FW_CPictureShape*    fPictShape;            // Mr. Pizza
  73. };
  74.  
  75. //=======================================================================
  76. #endif
  77.